﻿<?php
class Comment {

    public $id;
    public $userID;
    public $artID;
    public $text;
    public $time;
    
    public function __construct($data = null) {
        
        if (is_array($data)) {
        
            @$this->id = $data['id'];
            @$this->userID = $data['userID'];
            $this->artID = $data['artID'];
            $this->text = $data['text'];
            @$this->time = $data['time'];
        }
    }
}
?>